<name>Sean O'Connor</name>
<profession>Professor</profession>
<dialogue>
  <greeting>
    <reply>
      <if><random>80</random></if>
      <text>Every time you open a Pandora's Box it's difficult to put the lid back on.</text>
      <return>main</return>
    </reply>
    <reply>
      <if><random>120</random></if>
      <text>I haven't found anywhere in the world where I want to be all the time. The best of my life is the moving. I look forward to going.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>It doesn't matter where the job is, the moment you have any sort of privilege, there's a great reluctance to give it up.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Sir? What is this camp?</text>
      <npc>
        <reply>
          <text>This is an archeologist's dig, friend. As the professor here, I am the one with the privilige to tell where to dig and to open the boxes.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>So, why are you digging here?</text>
      <npc>
        <reply>
          <text>This is old land, with the legends of mythological creatures to go with it. The earth holds bones and pottery from ages back, and someday this large rock that casts its shadow over it will show us something truly worth digging for, if it doesn't throw thunderballs down on us first. Meanwhile, the museum pays handsomely for what we do dig up. So never say never again!</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>And what have you found?</text>
      <npc>
        <reply>
          <text>Gnoll bones, [gender]. I know that they say diamonds are forever, but sometimes it seems like gnoll bones are, too. From Mount Pilanteko with love. Ah, if I had King Midas' touch ... But no, I'd be content with a silver rose.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Are these lands not dangerous, with the gnolls of today still running around?</text>
      <npc>
        <reply>
          <text>They may be on occasion, but I am well protected in my present company. Still, one only lives twice. Last October turned a bit too red to my taste.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>What of this silver rose?</text>
      <npc>
        <reply>
        <if> 
          <key>!nameoftherosebooked</key>
        </if>
          <text>It was once within my grasp, west of here. But someone else took it before I could, a Dark Knight. I know not his name, and he rode away fast into the rising sun. If you ever come across it, find out its name and tell me, because its name holds a secret of this soil's history. I must know the name of the rose.</text>
          <script>
            <key>nameoftherosebooked</key>
            <quest>Name of the Rose|Find out the name of the silver rose that was taken by a Dark Knight</quest>
            <log>Asked by professor O'Connor to get the name of some silver rose</log>
          </script>
          <return>main</return>
        </reply>
        <reply>
          <text>I need its name. Try and find the Dark Knight that took it.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
  </main>
  <main>
    <option>
      <text>Goodbye, highlander!</text>
      <npc>
        <reply>
          <return>exit</return>
        </reply>
      </npc>
    </option>
  </main>
</dialogue>